package com.eas.task.common;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.eas.task.common.interfaces.EasTaskJob;

public class TaskJobRunner {

    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext(
                "classpath:config/taskContext.xml");
        EasTaskJob job = (EasTaskJob) context.getBean(args[0]);
        job.work();
    }
}
